{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}FastApp - 添加商品{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>在- {{ category_name }} -下添加商品</h1>
</div>
<div class="col-md-4">
	<form role="form" method="post" action="/addProduct">
		<div class="form-group">
			<label for="name">填写商品名称</label>
			<input type="text" class="form-control" placeholder="请输入商品名" name="product_name">
			<input type="hidden" class="form-control" name="category_id" value={{ category_id }}>
			<input type="hidden" class="form-control" name="category_name" value={{ category_name }}>
		</div>
		<div class="form-group">
			<label for="name">填写商品图片url</label>
			<input type="text" class="form-control" placeholder="请输入商品url" name="product_image_url">
		</div>
		<div class="form-group">
			<label for="name">填写商品价格</label>
			<input type="text" class="form-control" placeholder="请输入商品价格" name="product_price">
		</div>
		<div class="form-group">
			<label for="name">填写商品介绍</label>
			<input type="text" class="form-control" placeholder="请输入商品价格" name="product_introduce">
		</div>
		<button type="submit" class="btn btn-primary btn-margin">确认提交</button>
	</form>
</div>

{% endblock %}